package com.ddstation.onsitelaw.model.auditmodel;


import java.util.ArrayList;
import java.util.List;

/**
 * 体检项目 catalog2
 *
 * @author zhangdifeng
 * @date 2017年5月22日
 */
public class HealthExaminationCatalog2Model extends BaseBean {
    public HealthExaminationCatalog2Model() {
        super();
    }

    public HealthExaminationCatalog2Model(int id, String name) {
        super(id, name);
    }

    /**
     * 根据id获取bean
     *
     * @param catalog2Id
     * @return
     */
    public HealthExaminationItemModel getItem(int itemId) {
        for (HealthExaminationItemModel _item : items) {
            if (_item.getId() == itemId) {
                return _item;
            }
        }
        return null;
    }

    //	private Integer starCnt;
//	private String reason;
    private List<HealthExaminationItemModel> items = new ArrayList<HealthExaminationItemModel>();

    public List<HealthExaminationItemModel> getItems() {
        return items;
    }

    public void setItems(List<HealthExaminationItemModel> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "HealthExaminationCatalog2Model [items=" + items + "]";
    }
}
